<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css动画</title>
</head>
<body>
    <div class="play-ground">
        <div class="ball">
            
        </div>
    </div>
</body>
<style>
    .play-ground{
        width: 600px;
        height: 350px;
        border: 1px solid rgb(rgb(172, 111, 111));
        position: relative;
    }
    .ball{
        background: rgb(rgb(82, 75, 222));
        border-radius: 50%;
        position:absolute;
        animation: ball 3s infinite;
    }
    @keyframes ball{
        from{
            widows: 50px;
            height: 50px;
            left: 30px;
            top: 120px;
        }
        24%{
            widows: 25px;
            height: 25px;
            left: 130px;
            top: 20px;
        }
        50%{
            width: 100px;
            height: 100px;
            left: 240px;
            top: 100px;
            opacity: .1;
        }
        75%{
            width: 100px;
            height: 100px;
            left: 360px;
            top: 200px;
            opacity: .7;
        }
        100%{
            width: 150px;
            height: 150px;
            left: 420px;
            top: 70px;
            opacity: .3;
        }
    }
</style>
</html>